package org.melanesia.converters.exceptions;


/**
 * Thrown when there is no matching converter registered for a class, and an
 * object of this class is either passed as a parameter to: -
 * {@link org.melanesia.sql.Query#setParameter(String, Object)} -
 * {@link org.melanesia.sql.Call#setParameter(String, Object)} -
 * {@link org.melanesia.sql.Batch#setParameter(String, Object)},
 *
 * or registered as an out parameter in
 * {@link org.melanesia.sql.Call#registerOutputParameter(String, Class)} .
 *
 * @author marcin.kielar
 */
public class UnsupportedClassException extends ConversionException {

    /** Serial version uid for serialization. */
    private static final long serialVersionUID = 3615559435319616002L;

    /**
     * Default constructor.
     *
     * @param clazz
     *            - unsupported class
     */
    public UnsupportedClassException(final Class<?> clazz) {
        super(clazz.getName());
    }
}
